package com.gxh.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 设备销售
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("machine_sale")
public class MachineSale implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("设备id")
    private Long machineId;

    @ApiModelProperty("购买人或公司")
    private String buyerName;

    @ApiModelProperty("联系方式")
    private String buyerPhone;

    @ApiModelProperty("购买地址")
    private String buyerLocation;

    @ApiModelProperty("销售金额")
    private BigDecimal soldPrice;

    @ApiModelProperty("售出时间")
    private LocalDateTime createTime;

}
